package core

import (
	"io/ioutil"
	"os"
	"strings"
)

// ParsingTableName  获取需要备份的表
func ParsingTableName(path string) ([]string, error) {
	file, err := os.Open(path)
	if err != nil {
		return nil, err
	}
	defer file.Close()
	content, err := ioutil.ReadAll(file)
	tables := strings.Split(string(content), ",")
	return tables, nil
}
